<?php
/**
 * Created by PhpStorm.
 * User: huynguyen
 * Date: 3/30/14
 * Time: 7:40 PM
 */

class CJsonResult {
    private $resultCd;
    private $msg;

    function __construct($resultCd, $msg)
    {
        $this->resultCd = $resultCd;
        $this->msg = $msg;
    }

    /**
     * @param mixed $msg
     */
    public function setMsg($msg)
    {
        $this->msg = $msg;
    }

    /**
     * @return mixed
     */
    public function getMsg()
    {
        return $this->msg;
    }

    /**
     * @param mixed $resultCd
     */
    public function setResultCd($resultCd)
    {
        $this->resultCd = $resultCd;
    }

    /**
     * @return mixed
     */
    public function getResultCd()
    {
        return $this->resultCd;
    }

    /**
     * @return string
     */
    public function toJson(){

        return CJSON::encode(array("resultCd" =>  $this->resultCd, "msg" => $this->msg));
    }


} 